Cataracts occur when there is a buildup of protein in the lens that makes it cloudy. This prevents light from passing clearly through the lens, causing some loss of vision.